package net.begincode.admin.bean;


import com.google.common.base.Preconditions;
import org.apache.commons.lang3.StringUtils;

import java.io.Serializable;

public class HomeTypeParam implements Serializable,ParamCheck {
    private static final long serialVersionUID = -1431993302119223575L;
    //分类名称
    private String typeName;
    //优先级
    private Integer priority;
    @Override
    public void checkParam(){
        Preconditions.checkNotNull(priority,"priority not null");
        Preconditions.checkArgument(StringUtils.isNotEmpty(typeName),"typeName not empty");
    }

    public String getTypeName() {
        return typeName;
    }

    public void setTypeName(String typeName) {
        this.typeName = typeName;
    }

    public Integer getPriority() {
        return priority;
    }

    public void setPriority(Integer priority) {
        this.priority = priority;
    }
}
